window.onload = init;

function init() {
    var button = document.getElementById("add_song");
    button.onclick = handleButtonClick;
}

function handleButtonClick() {
    // alert("Button was clicked");
    var textInput = document.getElementById("song_name");
    var songName = textInput.value;
    var li = document.createElement("li");
    li.innerHTML = songName;
    var ul = document.getElementById("playlist")
    ul.appendChild(li)
}

